package cn.wolfcode.trip.api.controller;

import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.domain.NewsComment;
import cn.wolfcode.trip.base.domain.NewsCommentSecond;
import cn.wolfcode.trip.base.query.NewsCommentQueryObject;
import cn.wolfcode.trip.base.query.NewsQueryObject;
import cn.wolfcode.trip.base.service.INewsCommentSecondService;
import cn.wolfcode.trip.base.service.INewsCommentService;
import cn.wolfcode.trip.base.service.INewsService;
import cn.wolfcode.trip.base.util.JsonResult;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/newsCommentSecond")
public class NewsCommentSecondController {
    @Autowired
    private INewsCommentSecondService secondService;
    //保存二级评论
    @PostMapping
    public JsonResult saveNewsCommentSecond(NewsCommentSecond newsCommentSecond) {
        secondService.save(newsCommentSecond);
        return  new JsonResult();
    }
}
